﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class FollowMouse : MonoBehaviour {


	public Weapon weapon;
	void Update () {
		transform.position = Input.mousePosition;
		GetComponent<Image>().enabled = weapon.enabled;
		Cursor.visible = !weapon.enabled;
	}
}
